import urllib2

__author__ = 'tomoya'


class HtmlDownloader(object):

    def download(self, url):
        if url is None:
            return None

        response = urllib2.urlopen(url)
        if response.code != 200:
            return None

        return response.read()